home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950929-19951130 / 000143_news@columbia.edu_Thu Oct 19 01:53:50 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA23345
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 19 Oct 1995 12:09:36 -0400
  3. Received: by apakabar.cc.columbia.edu id AA11180
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 19 Oct 1995 12:09:34 -0400
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!usenet.eel.ufl.edu!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
  6. From: jrd@cc.usu.edu (Joe Doupnik)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Can Kermit Print?  Another question.
  9. Message-Id: <1995Oct19.075350.64206@cc.usu.edu>
  10. Date: 19 Oct 95 07:53:50 MDT
  11. References: <45c0dg$vf@solaris.cc.vt.edu> <1995Oct9.202742.63269@cc.usu.edu> <DGnuA2.ECB@murdoch.acc.Virginia.EDU>
  12. Organization: Utah State University
  13. Lines: 37
  14. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <DGnuA2.ECB@murdoch.acc.Virginia.EDU>, ghp5h@virginia.edu (George H. Payne) writes:
  17. > On a sort of related note--is there a way to script a print-through 
  18. > session?  I have just started trying to do this (and yes, I have ordered 
  19. > the manual, but I have no idea when it'll get here) and it seems that I 
  20. > cannot use script commands and a terminal emulation at the same 
  21. > time--thus I can't just activate the print-through with my script and 
  22. > have it captured with "set printer".  Or can I?
  23. > This spawns two general questions:
  24. > 1.  Is  there script archive anywhere?
  25. > 2.  Is there a way to send commands to a terminal session (as opposed to 
  26. > a "raw data" session)?  Must my script detect the escape codes and 
  27. > toggle capturing itself?
  28. > I apologize if this is indeed a stupid question.  I'd love to RTFM, but 
  29. > I'm under pressure to get this done and I don't know when the FM will be 
  30. > here :).  Thanks for any help.
  31. > -- 
  32. > George H. Payne
  33. > Law Information Technology and Communications
  34. > UVa Law School
  35. --------------
  36.     Scripts run at Kermit prompt level, not within terminal emulation.
  37. However, you may define a Kermit macro to do just about anything (holds
  38. any Kermit commands) and tie it to a Connect mode key. But please be aware
  39. that Connect mode is not operating while at the Kermit prompt level and
  40. hence there will be no transparent printing activity there.
  41.     It's better to turn all this around and tell the remote host to
  42. do the transparent printing work. That is, have a command file of some
  43. kind on the host and run it. In turn that cmd file brackets the file to be
  44. printed with the ESC [ 4/5 i transparent printing control sequences. If
  45. that command file were named  tprint.com  then invoke it as say 
  46. "tprint filename." Kermit would be in Connect mode the whole time.
  47.     Another alternative is to just transfer the file from the host to
  48. the printer using the Kermit file transfer protocol. The file destination
  49. would be PRN or other suitable name. This approach is robust.
  50.     Joe D.